<?php
require ("./VO.php");
require ("./DAO.php");
require ("./BasicDAO.php");
require ("./BasicVO.php");
require ("./DB.php");
require ("./Logger.php");
require ("./ModelConfig.php");
require ("./Mapping.php");
require ("./Stats.php");
require ("./StatsDAO.php");
require ("./MappingDAO.php");
require ("./Hash.php");
require ("./Facade.php");

//$dao = new MappingDAO();
//$vo = $dao->produceVO();
//$vo->set("token", "xxdafsdfa");
//$vo->set("realurl", "http://www.163.com");
//$vo->set("token_length", 10);
//$vo->set("realurl_length", 20);
//$result = $dao->add($vo);
//var_dump ($result);
//$dao = new StatsDAO();
//$vo = $dao->produceVO();
//$vo->set('skey', 'last_updated_key');
//$vo->set('svalue', 'anaa');
//$vo->set('updated_time', time());
//$dao->replace($vo);
//
//        $dao = new StatsDAO();
//        $vo = $dao->produceVO();
//        $vo->set('skey', 'last_updated_n');
//        $result = $dao->getByCol(array('skey'), array($vo));
//        var_dump ($result);

//var_dump (Facade::genTokenWithToken('http://rainx.cn/test81', "abcdef"));
//var_dump (Facade::genTokenWithToken('http://rainx.cn/test8/', 'rainx11'));
// var_dump (Facade::getUrlInfoByToken('abcdef'));

?>
